<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改【请填写功能名称】')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-result-edit" th:object="${plCalculateResult}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">对比网站A：</label>
                <div class="col-sm-8">
                    <input name="hostA" th:field="*{hostA}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">对比网站A：</label>
                <div class="col-sm-8">
                    <input name="hostB" th:field="*{hostB}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">队伍A网站id：</label>
                <div class="col-sm-8">
                    <input name="hostACode" th:field="*{hostACode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">队伍B网站id：</label>
                <div class="col-sm-8">
                    <input name="hostBCode" th:field="*{hostBCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">比赛开始时间：</label>
                <div class="col-sm-8">
                    <input name="startDate" th:field="*{startDate}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">赔率类型：</label>
                <div class="col-sm-8">
                    <select name="plType" class="form-control m-b">
                        <option value="">所有</option>
                    </select>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">网站A比赛：</label>
                <div class="col-sm-8">
                    <input name="hostAView" th:field="*{hostAView}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">网站A赔率：</label>
                <div class="col-sm-8">
                    <input name="hostAPl" th:field="*{hostAPl}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">网站B比赛：</label>
                <div class="col-sm-8">
                    <input name="hostBView" th:field="*{hostBView}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">网站B赔率：</label>
                <div class="col-sm-8">
                    <input name="hostBPl" th:field="*{hostBPl}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">赔率计算结果：</label>
                <div class="col-sm-8">
                    <input name="res" th:field="*{res}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "system/result";
        $("#form-result-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-result-edit').serialize());
            }
        }
    </script>
</body>
</html>